package cn.xiaok.springboot.entity;

import com.alibaba.excel.annotation.ExcelProperty;

/**
 * @author xueqian.shi
 * @date 2020/9/22
 */
//设置表头和添加字段
public class ExcelEntity {
    @ExcelProperty("编号") //表头
    private int id;
    @ExcelProperty("姓名") //表头
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "ExcelEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
